<!-- 我的表格 -->

<template>
  <WebTable>
    <RowCheckbox />

    <RowPhoto label="二维码" bind="qrCodeUrl" :width="120" />

    <RowTitle :label="`${CORE.MAP.ASSET}编号`" bind="assetCode" :width="150" />

    <RowText :label="`${CORE.MAP.ASSET}名称`" bind="assetName" :minWidth="150" />

    <RowTree
      :label="`${CORE.MAP.ASSET}分类`"
      bind="assetTypeId, assetTypeName"
      :dict="$root.device_category_treeDict"
      :width="130"
    />

    <RowDict label="品牌" bind="brandId, brandName" :dict="CORE.DICT.asset_brand" />

    <RowText label="型号" bind="modelName" />

    <RowStatus width="auto" />

    <RowDict label="供应商" bind="supplierId, supplierName" :dict="supplier_selectDict" :minWidth="150" />

    <RowTree
      :label="`所属${CORE.MAP.ORGAN}`"
      bind="organizationId, organizationName"
      :dict="CORE.ORGAN.DICT"
      :minWidth="150"
    />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb(), CORE.mixSelect('supplier', 'supplier_')],
}
</script>
